using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;

namespace SharepointWorkflowStarter
{
    public class TreeNodeTag
    {
        public enum TreeNodeTypes
        {
            WorkflowTemplate,
            Web,
            List,
            File
        }

        private string itemUrl = string.Empty;
        private Guid workflowTemplateId;
        private TreeNodeTypes treeNodeType;
        private SPList list;

        public TreeNodeTag()
        {
        }

        public TreeNodeTag(string itemUrl, Guid workflowTemplateId, TreeNodeTypes treeNodeType)
        {
            this.itemUrl = itemUrl;
            this.workflowTemplateId = workflowTemplateId;
            this.treeNodeType = treeNodeType;
        }

        public TreeNodeTag(string itemUrl, Guid workflowTemplateId, TreeNodeTypes treeNodeType, SPList list)
        {
            this.itemUrl = itemUrl;
            this.workflowTemplateId = workflowTemplateId;
            this.treeNodeType = treeNodeType;
            this.list = list;
        }

        public string ItemUrl
        {
            get
            {
                return this.itemUrl;
            }
            set
            {
                this.itemUrl = value;
            }
        }

        public Guid WorkflowTemplateId
        {
            get
            {
                return this.workflowTemplateId;
            }
            set
            {
                this.workflowTemplateId = value;
            }
        }

        public SPList List
        {
            get
            {
                return this.list;
            }
            set
            {
                this.list = value;
            }
        }

        public TreeNodeTypes TreeNodeType
        {
            get
            {
                return this.treeNodeType;
            }

            set
            {
                this.treeNodeType = value;
            }
        }
    }
}
